package org.example.biz;

import org.example.dao.Storage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class Computer {

    // 组件名默认为首字母小写的类名
    @Autowired
    @Qualifier("usbDisk")
    Storage storage;

    public void save(Object data){
        storage.save(data);
    }

}
